import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Wode from '@/components/wode/wode'
import Xiaoxi from '@/components/xiaoxi/xiaoxi'
import Tongxun from '@/components/tongxun/tongxun'
import Daka from '@/components/daka/daka'
import Yidongbangong from '@/components/bangonggengduo/yidongbangong'
import Yidongshangdian from '@/components/shangdiangengduo/yidongshangdian'
import Yuangongfuwu from '@/components/fuwugengduo/yuangongfuwu'
import Gonggao from '@/components/gonggao/gonggao'
import Ggxq from '@/components/gonggao/gonggaoxiangqing/gonggaoxiangqing'
import Nav from '@/components/news/Nav'  
import newsHome from '@/components/news/newsHome'  
import Follow from '@/components/news/Follow'  // 要闻
import Column from '@/components/news/Column'  // 二院动态
import ColumnTwo from '@/components/news/ColumnTwo'  // 三院动态
import OnlyOne from '@/components/news/OnlyOne'  // 疫情
import Article from '@/components/news/Article'  // 文章内容页

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'HelloWorld',
            component: HelloWorld,
        },
        {
            path: "/Wode",
            name: "wode",
            component: Wode
        },
        {
            path: "/tongxun",
            name: "tongxun",
            component: Tongxun
        },
        {
            path: "/xiaoxi",
            name: "xiaoxi",
            component: Xiaoxi
        },
        {
            path: "/Daka",
            name: "Daka",
            component: Daka
        },
        {
            path: "/Yidongbangong",
            name: "Yidongbangong",
            component: Yidongbangong
        },
        {
            path: "/Yidongshangdian",
            name: "Yidongshangdian",
            component: Yidongshangdian
        },
        {
            path: "/Yuangongfuwu",
            name: "Yuangongfuwu",
            component: Yuangongfuwu
        },
        {
            path: "/Gonggao",
            name: "Gonggao",
            component: Gonggao
        },
        {
            path: "/Nav",
            name: "Nav",
            component: Nav,
        },
        {
            path: '/newsHome',   
            name: "newsHome",
            component: newsHome
        },
        {
            path: '/article/:id',   // 文章内容页
            component: Article
        },
        {
            path: '/follow',  // 要闻
            component: Follow
        },
        {
            path: '/column',  // 二院动态
            component: Column
        },
        {
            path: '/columnTwo',  // 三院动态
            component: ColumnTwo
        },
        {
            path: '/onlyOne',  // 疫情
            component: OnlyOne
        },
        {
            path: '/xiangqq',
            component: Ggxq
        },
    ]
})
